package com.kehutong.admin.enums;

import org.coraframework.util.HashID;

/**
 * 区域等级
 * 
 * @author liuzhen [liuxing521a@163.com]
 * @createTime 2017年1月4日 上午11:15:56
 */
public enum Level implements HashID {
	COUNTRY(1, "国家") {

		@Override
		public Level next() {
			return PROVINCE;
		}
	},

	/** 省*/
	PROVINCE (2, "省份直辖市") {
		@Override
		public Level next() {
			return CITY;
		}
	},
	
	/** 城市*/
	CITY (3, "地市") {
		@Override
		public Level next() {
			return AREA;
		}
	} ,
	/** 区*/
	AREA (4, "区县") {
		@Override
		public Level next() {
			return null;
		}
	}
	;
	

	private String id;
	private String desc;
	
	private Level(Integer id, String desc) {
		this.id = id.toString();
		this.desc = desc;
	}
	
	@Override
	public String getId() {
		return id;
	}

	@Override
	public String getDesc() {
		return desc;
	}
	
	public abstract Level next();
	
}
